package com.sikaryofficial.backend.domain.dto.req.productactivity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sikaryofficial.common.core.annotation.SqlEscapeDeserializer;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @author : qinjinyuan
 * @desc : 活动保存对象
 * @date : 2023/11/21 19:30
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "活动列表请求对象")
public class ActivityListReq extends PageDomain {

    /**
     * 活动名称
     */
    @ApiModelProperty(value = "活动名称")
    @JsonDeserialize(using = SqlEscapeDeserializer.class)
    private String activityName;

    /**
     * 活动开始时间
     */
    @ApiModelProperty(value = "活动开始时间", example = "2023-11-21 19:30:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @ApiModelProperty(value = "活动结束时间", example = "2023-11-22 19:30:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 活动(平台)品牌
     */
    @ApiModelProperty(value = "活动(平台)品牌")
    private String activityBrand;
    /**
     * 国家
     */
    @ApiModelProperty(value = "国家")
    private String country;

    /**
     * 区域
     */
    @ApiModelProperty(value = "区域")
    private String area;

    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    private String city;

    /**
     * 区县
     */
    @ApiModelProperty(value = "区县")
    private String county;

    @JsonIgnore
    private Integer tenantId;
}
